import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EPlayerItemPosType
    
    export  class EPlayerItemPosType
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public static convert(arg1: int): EPlayerItemPosType
        {
            return new EPlayerItemPosType(arg1);
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeShort(this.__value);
            return;
        }

        public static __read(arg1: SerializeStream): EPlayerItemPosType
        {
            var loc1=arg1.readShort();
            if (loc1 < 0 || loc1 >= 1001) 
            {
                throw new MarshalException();
            }
            return EPlayerItemPosType.convert(loc1);
        }

        public static /* const */_EPlayerItemPosTypeTower: int=19;

        public static /* const */_EPlayerItemPosTypeBag: int=0;

        public static /* const */_EPlayerItemPosTypeWarehouse: int=1;

        public static /* const */_EPlayerItemPosTypeGMGift: int=2;

        public static /* const */_EPlayerItemPosTypeRole: int=3;

        public static /* const */_EPlayerItemPosTypeTask: int=4;

        public static /* const */_EPlayerItemPosTypeBagExtendBar: int=5;

        public static /* const */_EPlayerItemPosTypeWarehouseExtendBar: int=6;

        public static /* const */_EPlayerItemPosTypeMount: int=7;

        public static /* const */_EPlayerItemPosTypePet: int=8;

        public static /* const */_EPlayerItemPosTypeStall: int=9;

        public static /* const */_EPlayerItemPosTypePetStorage: int=10;

        public static /* const */_EPlayerItemPosTypePetWarehouse: int=11;

        public static /* const */_EPlayerItemPosTypeGuildWarehouse: int=12;

        public static /* const */_EPlayerItemPosTypeRunBusiness: int=13;

        public static /* const */_EPlayerItemPosTypeTreasure: int=14;

        public static /* const */_EPlayerItemPosTypeFish: int=15;

        public static /* const */_EPlayerItemPosTypePetExplore: int=18;

        public static /* const */_EPlayerItemPosTypeCopyBox: int=16;

        public static /* const */_EPlayerItemPosTypeGuildBox: int=20;

        public static /* const */_EPlayerItemPosTypeWardrobe: int=21;

        public static /* const */_EPlayerItemPosTypeRune: int=22;

        public static /* const */_EPlayerItemPosTypePetLifeStypePut: int=23;

        public static /* const */_EPlayerItemPosTypePetLifeStypeHunt: int=24;

        public static /* const */_EPlayerItemPosTypeCrossDefense: int=25;

        public static /* const */_EPlayerItemPosTypeCrossSecret: int=26;

        public static /* const */_EPlayerItemPosTypeDirectionCopy: int=27;

        public static /* const */_EPlayerItemPosTypeStoneBag: int=28;

        public static /* const */_EPlayerItemPosTypeCopySeal: int=29;

        public static /* const */_EPlayerItemPosTypeGuildWarehouseEx: int=30;

        public static /* const */_EPlayerItemPosTypeUpgradeCrossSecret: int=31;

        public static /* const */_EPlayerItemPosTypeAmuletBag: int=32;

        public static /* const */_EPlayerItemPosPloughBag: int=33;

        public static /* const */_EPlayerItemPosTypePetEquipBase: int=1000;

        public static /* const */_EPlayerItemPosTypeDelegate: int=17;

        public /* var */__value: int;
    }
